<input type="hidden" name="attrItem.id" value="#(attrItem.id)">
<div class="layui-form-item">
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">排序</label>
		<div class="layui-input-inline">
			<input type="text" name="attrItem.sortNum" lay-verify="required|number" autocomplete="off" class="layui-input" value="#(attrItem.sortNum)">
		</div>
	</div>
</div>
<div class="layui-form-item">
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">项目名</label>
		<div class="layui-input-inline">
			<input type="text" name="attrItem.name" lay-verify="required|name" placeholder="请输入分类名" autocomplete="off" class="layui-input" value="#(attrItem.name)">
		</div>
	</div>
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">属性分类</label>
		<div class="layui-input-inline">
			<select name="attrItem.categoryId" lay-verify="required">
				<option value="">-- 请选择 --</option>
			#for(attrCategory : attrCategoryList)
				<option value="#(attrCategory.id)" #if(attrItem.categoryId == attrCategory.id) selected #end>#(attrCategory.name)</option>
			#end
			</select>
		</div>
	</div>
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">类型</label>
		<div class="layui-input-inline">
			<select name="attrItem.type" lay-verify="required">
				<option value="">-- 请选择 --</option>
				<option value="0" #if(attrItem.type == 0) selected #end>唯一属性</option>
				<option value="1" #if(attrItem.type == 1) selected #end>单选属性</option>
				<option value="2" #if(attrItem.type == 2) selected #end>复选属性</option>
			</select>
		</div>
	</div>
</div>
<div class="layui-form-item">
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">检索类型</label>
		<div class="layui-input-inline">
			<select name="attrItem.indexType" lay-verify="required">
				<option value="">-- 请选择 --</option>
				<option value="0" #if(attrItem.indexType == 0) selected #end>不需要检索</option>
				<option value="1" #if(attrItem.indexType == 1) selected #end>关键字检索</option>
				<option value="2" #if(attrItem.indexType == 2) selected #end>范围检索</option>
			</select>
		</div>
	</div>
	<div class="layui-inline">
		<label class="layui-form-label layui-bg-blue">输入类型</label>
		<div class="layui-input-inline">
			<select name="attrItem.inputType" lay-verify="required">
				<option value="">-- 请选择 --</option>
				<option value="0" #if(attrItem.inputType == 0) selected #end>手工录入</option>
				<option value="1" #if(attrItem.inputType == 1) selected #end>从列表中选择</option>
				<option value="2" #if(attrItem.inputType == 2) selected #end>多行文本框</option>
			</select>
		</div>
	</div>
</div>
<div class="layui-form-item layui-form-text">
	<label class="layui-form-label">可选值</label>
	<div class="layui-input-block">
		<textarea placeholder="" name="attrItem.values" class="layui-textarea">#(attrItem.values)</textarea>
	</div>
</div>
